const router = require('koa-router')()
const Sequelize = require('sequelize')
const Op = Sequelize.Op
const { Nowproject } = require('../model/index')
router.get('/project', async (ctx, next) => {
    let res = await Nowproject.findAll()
    if (res) {
        ctx.body = {
            code: 200,
            message:'数据获取成功',
            res
        }
    }else{
        ctx.body = {
            code: 501,
            message:'数据获取失败'
        }
    }

})
module.exports = router